<?php
/**
 * Created by Alan.
 * User: Alan
 * Date: 2018\9\30 0030
 * Time: 0:14
 */

namespace app\api\validate;


use think\Exception;
use think\Request;
use think\Validate;

class BaseValidate extends Validate
{
    public function goCheck()
    {
        $request = Request::instance();
        $params = $request->param();

        $result = $this->batch()->check($params);
        if(!$result){
            $e = new Exception('');
        }
        else {
            return true;
        }
    }
}